<script>
	export default {
		globalData:{
			app_name:'',
			share_title:'',
			share_image:'',
			share_path:'/pages/index/index',
			wxapp_code:'',
			bottomSaftHeight:'',
			navigationFontSize:'',
			isPhone:''
		},
		onLaunch: function(options) {
			console.log('onLaunch', options);
			var _this = this;
			
			//普通右上角分享带的邀请码
			if(options.query.invite_code){
				_this.$com.setData('puser_invite_code', options.query.invite_code);
			}
			
			var info = uni.getSystemInfoSync();
			this.globalData.bottomSaftHeight = info.safeAreaInsets.bottom;
			this.globalData.navigationFontSize = info.fontSizeSetting;
			console.log(info);
			
			// #ifdef MP-WEIXIN
			this.$com.setData('platform_code', '5');
			this.$com.setData('platform_version', wx.getAccountInfoSync().miniProgram.version);
			// #endif
			// #ifdef H5
			this.$com.setData('platform_code', '6');
			// #endif
			uni.getSystemInfo({
				success: (res) => {
					this.globalData.isPhone = res.osName == 'ios'
				}
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{

		}
	}
</script>

<style>
/* 字颜色000000 666666  按钮 010101  图标303030 可丽生活#d50f4d  */
@import 'static/css/font.css';
page{width:100%;padding-bottom:1rpx;}
view,text,input,textarea{font-family:'Microsoft YaHei', 'Roboto-Regular';}
view,text,input,textarea{font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;}
view,text,input,textarea{font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;}

button{margin:0 0;padding:0 0;background:#fff;}
button::after{border:none;}
image{width:inherit;height:inherit;-webkit-backface-visibility: hidden;-webkit-transform: translate3d(0, 0, 0);}
.word-inline{overflow: hidden;text-overflow:ellipsis;white-space: nowrap;}
.word-wrap{white-space: pre-line;word-wrap: break-word;}
.row-between{display: flex;justify-content: space-between;}
.line1{overflow: hidden;text-overflow:ellipsis;white-space: nowrap;}
.line2{word-break: break-all;overflow: hidden;text-overflow:ellipsis;display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;}
.touch{opacity: 0.6;}

.mask{position:fixed;width:100%;height:100%;opacity: 0.5;background:#000;z-index:11;left: 0;top:0;}
.box-shadow{box-shadow: rgba(0,0,0,0.08) 0 0 20rpx;}
.color1{color:#1dc6e0;}
.color2{color:#fc6c34;}
.color3{color:#eee;}
.themeColor{color:#790001;}
.themeBg{background-color:#790001;}
.bold{font-weight: bold;}
.ioshidden{-webkit-backface-visibility: hidden;-webkit-transform: translate3d(0, 0, 0);}

.btn{font-size:28rpx;font-weight: normal;width:690rpx;height:80rpx;line-height: 80rpx;text-align: center;border-radius:100rpx;}
.theme-btn1{color:#fff;background:#160000;box-shadow: rgba(0,0,0,0.1) 0 0 8rpx;}
.theme-btn2{color:#fff;background:#fc6c34;box-shadow: rgba(0,0,0,0.1) 0 0 8rpx;}
.theme-btn3{color:#7c7e80;background:#f4f5f6;box-shadow: rgba(0,0,0,0.1) 0 0 8rpx;}

.placeholder{font-size:28rpx;color:#888;}

radio-group{display: flex;}
radio-group label{display: flex;align-items: center;height:50rpx;line-height: 50rpx;margin-right:30rpx;}
radio-group label view{font-size:26rpx;}
radio-group label view radio{margin-bottom:4rpx;}

::-webkit-scrollbar {width:0;height:0;color:transparent;}

.sup-tag{position: absolute;top:-10rpx;right:-10rpx;width:30rpx;height:30rpx;background:#FF0000;color:#fff;border-radius:50%;font-size:20rpx;text-align: center;line-height: 30rpx;}
.radio-box1{width: 100%;height: 0;padding-bottom: calc(100% /3 *2);position: relative;}
.radio-box2{width: 100%;height: 0;padding-bottom: 100% ;position: relative;}
.radio-show-image{width: 100%;height: 100%;position:absolute;top: 0;left: 0;}
</style>
